package com.regentsoft.cloudback.enterpriseAdmin.entity;

import java.io.InputStream;

/**
 * Created by work on 2017/11/29.
 *
 * @author lumr
 */
public class MediaFile {
    public MediaFile(String fileName, byte[] bytes, long length) {
        this.fileName = fileName;
        this.bytes = bytes;
        this.length = length;
    }

    public MediaFile(InputStream inputStream, String fileName, long length) {
        this.fileName = fileName;
        this.inputStream = inputStream;
        this.length = length;
    }

    private String fileName;
    private byte[] bytes;
    private InputStream inputStream;
    private long length;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public InputStream getInputStream() {
        return inputStream;
    }

    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }

    public long getLength() {
        return length;
    }
}
